/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package photoshare.dto;

/**
 *
 * @author PhotoShare
 */
public class FaqDTO{
    private Integer faqId;
    private String question;
    private String answer;

    public FaqDTO() {
    }

    public FaqDTO(Integer faqId) {
        this.faqId = faqId;
    }

    public FaqDTO(Integer faqId, String question, String answer) {
        this.faqId = faqId;
        this.question = question;
        this.answer = answer;
    }

    public Integer getFaqId() {
        return faqId;
    }

    public void setFaqId(Integer faqId) {
        this.faqId = faqId;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (faqId != null ? faqId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FaqDTO)) {
            return false;
        }
        FaqDTO other = (FaqDTO) object;
        if ((this.faqId == null && other.faqId != null) || (this.faqId != null && !this.faqId.equals(other.faqId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "dto.FAQs[faqId=" + faqId + "]";
    }

}
